import Router from 'vue-router';
import Vue from 'vue';
import HelloWorld from '@/components/HelloWorld.vue';
import CourseDetail from '@/components/course-detail/course-detail.vue';

Vue.use(Router);
export default new Router({
	routes: [{
		path: '/',
		redirect: 'course-detail'
	}, {
		path: '/home',
		name: 'home',
		component: HelloWorld
	}, {
		path: '/course-detail',
		name: 'course-detail',
		component: CourseDetail
	}]
})
